package com.wss.module.wan.ui.main;

import com.wss.common.base.BaseAbility;
import com.wss.module.wan.ResourceTable;
import com.wss.module.wan.ui.main.fragment.HomeFragment;
import ohos.aafwk.content.Intent;
import ohos.agp.components.StackLayout;

public class WanMainAbility extends BaseAbility {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);

        StackLayout stackLayout = (StackLayout) findComponentById(ResourceTable.Id_fragment_wan);
        stackLayout.addComponent(new HomeFragment(this).getRootView());
    }

    @Override
    protected int getLayoutId() {
        return ResourceTable.Layout_ability_main;
    }
}
